{% extends "base.html" %}
{% block main_content %}
     {% include 'message.html' %}

 <div class="panel panel-default">
          <!-- Default panel contents -->
          <div class="panel-heading"><span style="font-weight: bold">编辑用户信息</span><a style="float:right;" href="/users/"><i class="glyphicon glyphicon-th" title="首页"></i></a>
          </div>
          <div class="panel-body" >
                   <form action="/update_user/{{ form.account.data }}" method="POST">
            {{ form.csrf_token }}
            <table class="table">
                <tbody>
                <tr>
                    <td>{{ form.name.label }}</td>
                    <td>{{ form.name }} </td>
                </tr>
                <tr>
                    <td>{{ form.account.label }}</td>
                    <td>{{ form.account }} </td>
                </tr>
                <tr>
                    <td>{{ form.password.label }}</td>
                    <td>{{ form.password }} </td>
                </tr>
                <tr>
                    <td>{{ form.password2.label }}</td>
                    <td>{{ form.password2 }} </td>
                </tr>
                <tr>
                    <td>{{ form.submit }}</td>
                    <td>&nbsp;</td>
                </tr>
                </tbody>
            </table>
               </form>
          </div>



        </div>

{% endblock %}